package com.wereload.UserController;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.wereload.bean.User;
import com.wereload.mapper.UserMapper;

@RestController
public class UserController {

	@Autowired
	private UserMapper userMapper;
	@Value("${from}")
	private String from;

	@RequestMapping("/from")
	public List<User> from() {
		return this.userMapper.getUserList();
	}
}
